NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Technical Q&A TB17
VBL Tasking and calling FrontWindow

Q When I call FrontWindow from within a VBL task, my system occasionally freezes at this call. Is there any chance that it moves memory?

A No, but FrontWindow is not reentrant. It's been patched out since MultiFinder, and ought to be on the list of routines that shouldn't be called at interrupt time. You'll have to come up with another method of getting the front window from your VBL task. You may want to keep a shadow copy of your application's window list in your application global area where your VBL task can get to it.

[Sep 15 1995]


Developer Documentation | Technical Notes | Development Kits | Sample Code